/* 掘金风格的Markdown主题 */
.markdown-theme-juejin {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #252933;
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.markdown-theme-juejin h1,
.markdown-theme-juejin h2,
.markdown-theme-juejin h3,
.markdown-theme-juejin h4,
.markdown-theme-juejin h5,
.markdown-theme-juejin h6 {
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 1em;
  color: #1d2129;
}

.markdown-theme-juejin h1 {
  font-size: 2em;
  line-height: 1.2;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-theme-juejin h2 {
  font-size: 1.5em;
  line-height: 1.225;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-theme-juejin h3 {
  font-size: 1.25em;
}

.markdown-theme-juejin h4 {
  font-size: 1em;
}

.markdown-theme-juejin p {
  margin-bottom: 1.2em;
  font-size: 1em;
}

.markdown-theme-juejin a {
  color: #1e80ff;
  text-decoration: none;
}

.markdown-theme-juejin a:hover {
  text-decoration: underline;
}

.markdown-theme-juejin blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #666;
  background-color: #f8f8f8;
  border-left: 4px solid #cbcbcb;
}

.markdown-theme-juejin code {
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  background-color: #f8f8f8;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: #e96900;
}

.markdown-theme-juejin pre {
  background-color: #282c34;
  padding: 16px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.2em 0;
}

.markdown-theme-juejin pre code {
  background-color: transparent;
  padding: 0;
  color: #abb2bf;
}

.markdown-theme-juejin img {
  max-width: 100%;
  margin: 1.2em auto;
  display: block;
  border-radius: 4px;
}

.markdown-theme-juejin hr {
  border: none;
  border-top: 1px solid #eaecef;
  margin: 2em 0;
}

.markdown-theme-juejin ul,
.markdown-theme-juejin ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-theme-juejin li {
  margin-bottom: 0.4em;
}

.markdown-theme-juejin table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  border: 1px solid #eaecef;
}

.markdown-theme-juejin table th,
.markdown-theme-juejin table td {
  border: 1px solid #eaecef;
  padding: 8px 12px;
  text-align: left;
}

.markdown-theme-juejin table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

.markdown-theme-juejin table tr:nth-child(even) {
  background-color: #f6f8fa;
}

/* 暗色模式 */
.dark-mode .markdown-theme-juejin {
  color: #e5e6eb;
  background-color: #121212;
}

.dark-mode .markdown-theme-juejin h1,
.dark-mode .markdown-theme-juejin h2,
.dark-mode .markdown-theme-juejin h3,
.dark-mode .markdown-theme-juejin h4,
.dark-mode .markdown-theme-juejin h5,
.dark-mode .markdown-theme-juejin h6 {
  color: #e5e6eb;
}

.dark-mode .markdown-theme-juejin h1,
.dark-mode .markdown-theme-juejin h2 {
  border-bottom: 1px solid #2f2f2f;
}

.dark-mode .markdown-theme-juejin a {
  color: #1e80ff;
}

.dark-mode .markdown-theme-juejin blockquote {
  background-color: #2a2a2a;
  color: #a3a3a3;
  border-left: 4px solid #444;
}

.dark-mode .markdown-theme-juejin code {
  background-color: #2a2a2a;
  color: #e96900;
}

.dark-mode .markdown-theme-juejin pre {
  background-color: #1e1e1e;
}

.dark-mode .markdown-theme-juejin hr {
  border-top: 1px solid #2f2f2f;
}

.dark-mode .markdown-theme-juejin table th,
.dark-mode .markdown-theme-juejin table td {
  border: 1px solid #2f2f2f;
}

.dark-mode .markdown-theme-juejin table th {
  background-color: #2a2a2a;
}

.dark-mode .markdown-theme-juejin table tr:nth-child(even) {
  background-color: #2a2a2a;
} 